package com.whfc.emp.dao;

import com.whfc.emp.entity.AppDeviceCardData;
import org.apache.ibatis.annotations.Param;

public interface AppDeviceCardDataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppDeviceCardData record);

    int insertSelective(AppDeviceCardData record);

    AppDeviceCardData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppDeviceCardData record);

    int updateByPrimaryKey(AppDeviceCardData record);

    /**
     * 插入或更新工牌硬件数据
     *
     * @param cardData
     * @return
     */
    void insertOrUpdate(AppDeviceCardData cardData);

    /**
     * 根据硬件ID查询
     *
     * @param deviceId
     * @return
     */
    AppDeviceCardData selectByDeviceId(@Param("deviceId") Integer deviceId);
}